// 控制器
class SetCounter {

  incr(state, data) {
    return {
      count: state.count + data
    }
  }
  
  decr(state, data) {
    return {
      count: state.count - data
    }
  }
}

export default new SetCounter